<template>
  <div>
    <el-dialog
      title="编辑报价单（维修）"
      :visible.sync="dialogshow"
      :before-close="dialogClose"
      style="display: none"
      top="10vh"
      width="90%"
      :fullscreen="fullscreen"
    >
      <dialog-tools
        v-bind:back="true"
        v-bind:next="true"
        v-bind:goback="true"
        v-bind:prev="true"
        v-bind:screen="true"
        @clickfullscreen="clickfullscreen"
      >
      </dialog-tools>
      <el-form
        id="form-repair"
        size="mini"
        :model="formData"
        label-width="100px"
      >
        <el-tabs class="baojia-tabs customer-tabs" type="border-card">
          <el-tab-pane label="报价详情">
            <el-row class="item-w230">
              <el-form-item label="客户名称">
                <el-input
                  v-model="formData.kfmc"
                  auto-complete="off"
                  :required="true"
                  @click.native="handleButtons(2)"
                ></el-input>
              </el-form-item>
              <el-form-item label="业务联系人" prop="customercate">
                <el-select v-model="formData.ywlxr" filterable>
                  <el-option label="联系人1" value="A"></el-option>
                  <el-option label="联系人2" value="B"></el-option>
                  <el-option label="联系人3" value="C"></el-option>
                  <el-option label="联系人4" value="D"></el-option>
                </el-select>
              </el-form-item>
              <el-form-item label="创建时间" prop="field101" v-if="isEdit">
                <el-date-picker
                  type="datetime"
                  v-model="formData.create_time"
                  placeholder="创建时间"
                  style="width: 100%"
                  clearable
                  :disabled="true"
                ></el-date-picker>
              </el-form-item>
              <el-form-item label="客户审核">
                <el-select v-model="formData.shzt" filterable>
                  <el-option
                    v-for="item in shzt"
                    :label="item.typename"
                    :key="item.id"
                    :value="item.typename"
                  ></el-option>
                </el-select>
              </el-form-item>
              <el-form-item label="审核时间" prop="field101">
                <el-date-picker
                  type="datetime"
                  v-model="formData.shsj"
                  placeholder="审核时间"
                  style="width: 100%"
                  clearable
                  :disabled="true"
                ></el-date-picker>
              </el-form-item>
              <el-form-item label="维修原因">
                <el-select v-model="formData.wxyy" placeholder="请选择">
                  <el-option label="公司原因" value="1"></el-option>
                  <el-option label="客户原因" value="2"></el-option>
                  <el-option label="供应商原因" value="3"></el-option>
                  <!-- <el-option label="免费保修" value="4"></el-option> -->
                  <el-option label="其它" value="5"></el-option>
                </el-select>
              </el-form-item>
              <el-form-item label="维修状态" v-if="isEdit">
                <el-input
                  v-model="formData.wxfy"
                  auto-complete="off"
                ></el-input>
              </el-form-item>
            </el-row>
            <el-row class="item-w230">
              <!-- <el-form-item label="维修历史" prop="customercate">
                <el-select v-model="formData.wp" filterable>
                  <el-option label="本公司产品" value="A"></el-option>
                  <el-option label="非公司产品，有维修记录" value="B"></el-option>
                  <el-option label="非公司产品，无维修记录" value="C"></el-option>
                  <el-option label="未知" value="D"></el-option>
                </el-select>
              </el-form-item> -->

              <el-form-item label="本公司产品" prop="field3000">
                <el-checkbox
                  label="是"
                  v-model="formData.field3000"
                ></el-checkbox>
              </el-form-item>

              <el-form-item label="有款号" v-if="formData.field3000">
                <el-input
                  v-model="formData.kh"
                  auto-complete="off"
                  placeholder="调取物品信息"
                  @click.native="handleButtons(3)"
                ></el-input>
              </el-form-item>

              <el-form-item label="有维修记录">
                <el-input
                  v-model="formData.wxjl"
                  auto-complete="off"
                  placeholder="调取物品信息"
                  @click.native="handleButtons(44)"
                ></el-input>
              </el-form-item>

              <el-form-item label="物品名称">
                <el-input
                  v-model="formData.wpmc"
                  auto-complete="off"
                ></el-input>
              </el-form-item>
              <el-form-item label="物品品类">
                <el-select v-model="formData.wppl" filterable>
                  <el-option label="戒指" value="A"></el-option>
                  <el-option label="项链" value="B"></el-option>
                  <el-option label="耳环" value="C"></el-option>
                  <el-option label="其它" value="D"></el-option>
                </el-select>
              </el-form-item>
              <el-form-item label="声明价值">
                <el-input
                  v-model="formData.smjz"
                  auto-complete="off"
                ></el-input>
              </el-form-item>
            </el-row>
            <el-divider></el-divider>
            <el-row class="item-w230">
              <el-form-item label="规格尺寸">
                <el-input
                  v-model="formData.ggcc"
                  auto-complete="off"
                ></el-input>
              </el-form-item>
              <el-form-item label="货重">
                <el-input
                  v-model="formData.ggcc"
                  auto-complete="off"
                ></el-input>
              </el-form-item>
              <!-- <el-form-item label="数量?">
                      <el-input
                        v-model="formData.number"
                        auto-complete="off"
                      ></el-input>
                    </el-form-item>-->
              <el-form-item label="主石">
                <el-input v-model="formData.zs" auto-complete="off"></el-input>
              </el-form-item>
              <el-form-item label="副石">
                <el-input v-model="formData.fs" auto-complete="off"></el-input>
              </el-form-item>
              <el-form-item label="金属品类">
                <el-input v-model="formData.fs" auto-complete="off"></el-input>
              </el-form-item>
              <el-form-item label="金属成色">
                <el-input v-model="formData.fs" auto-complete="off"></el-input>
              </el-form-item>
            </el-row>
            <el-divider></el-divider>
            <el-row class="item-w230">
              <el-form-item label="审核状态">
                <el-select v-model="formData.shzt" filterable>
                  <el-option
                    v-for="item in shzt"
                    :label="item.typename"
                    :key="item.id"
                    :value="item.typename"
                  ></el-option>
                </el-select>
              </el-form-item>
              <el-form-item label="审核人">
                <el-input v-model="formData.shr" auto-complete="off"></el-input>
              </el-form-item>
              <el-form-item label="审核时间">
                <el-date-picker
                  v-model="formData.shsj"
                  type="datetime"
                  style="width: 100%"
                  placeholder="审核时间"
                  clearable
                ></el-date-picker>
              </el-form-item>
              <el-form-item label="创建人">
                <el-input v-model="formData.shr" auto-complete="off"></el-input>
              </el-form-item>
              <el-form-item label="创建时间">
                <el-date-picker
                  v-model="formData.shsj"
                  type="datetime"
                  style="width: 100%"
                  placeholder="审核时间"
                  clearable
                ></el-date-picker>
              </el-form-item>
            </el-row>
            <el-divider></el-divider>

            <!-- 无论是否本公司产品，货重、金属成色等均以待维修前实际数据为准 -->

            <!-- <el-row class="item-w230">
              
              <el-form-item label="维修费用">
                <el-input
                  v-model="formData.wxfy"
                  auto-complete="off"
                ></el-input>
              </el-form-item>

            </el-row> -->

            <el-row class="item-w230">
              <el-col :span="2">
                <el-tag type="info">维修项目</el-tag>
              </el-col>
              <el-col :span="21">
                <el-checkbox-group v-model="checkList" style="margin-top:5px">
                  <el-checkbox label="抛光"></el-checkbox>
                  <el-checkbox label="清洗"></el-checkbox>
                  <el-checkbox label="换主石"></el-checkbox>
                  <el-checkbox label="换副石"></el-checkbox>
                  <el-checkbox label="改圈口"></el-checkbox>
                  <el-checkbox label="换耳迫"></el-checkbox>
                  <el-checkbox label="换耳夹"></el-checkbox>
                  <el-checkbox label="换链"></el-checkbox>
                </el-checkbox-group>
              </el-col>

              <el-col :span="1">
                <el-button
                  type="primary"
                  size="mini"
                  @click="dialogVisibleWxll = true"
                  icon="el-icon-plus"
                ></el-button>
              </el-col>
            </el-row>

            <el-divider></el-divider>

            <el-row style="margin-top: 10px">
              <el-col :span="2">
                <el-tag type="info">维修材料</el-tag>
              </el-col>
              <el-col :span="4"> 主石：3000元 </el-col>
              <el-col :span="4"> 副石：2000元 </el-col>
              <el-col :span="4"> 金属：1000元 </el-col>
              <el-col :span="4"> 配件：300元 </el-col>

              <el-col :span="5">&nbsp;</el-col>
              <el-col :span="1">
                <el-button
                  type="primary"
                  size="mini"
                  @click="handleButtons(111)"
                  icon="el-icon-plus"
                ></el-button>
              </el-col>
            </el-row>
            <el-divider></el-divider>
            <el-row class="item-w230">
              <el-form-item label="维修工费">
                <el-input
                  v-model="customer.brand"
                  auto-complete="off"
                ></el-input>
              </el-form-item>
              <el-form-item label="加急费">
                <el-input
                  v-model="customer.brand"
                  auto-complete="off"
                ></el-input>
              </el-form-item>
              <el-form-item label="风险费">
                <el-input
                  v-model="customer.brand"
                  auto-complete="off"
                ></el-input>
              </el-form-item>
              <el-form-item label="证书费">
                <el-input
                  v-model="customer.brand"
                  auto-complete="off"
                ></el-input>
              </el-form-item>
              <el-form-item label="包装盒费">
                <el-input
                  v-model="customer.brand"
                  auto-complete="off"
                ></el-input>
              </el-form-item>

              <el-form-item label="物流费">
                <el-input
                  v-model="customer.brand"
                  auto-complete="off"
                ></el-input>
              </el-form-item>
              <el-form-item label="其它费用">
                <el-input
                  v-model="customer.brand"
                  auto-complete="off"
                ></el-input>
              </el-form-item>
              <el-form-item label="税率（%）">
                <el-input
                  v-model="customer.brand"
                  auto-complete="off"
                ></el-input>
              </el-form-item>
              <el-form-item label="是否含税" prop="field3000">
                <el-checkbox
                  label="是"
                  v-model="formData.field3001"
                ></el-checkbox>
              </el-form-item>
              <el-form-item label="税费">
                <el-input
                  v-model="customer.brand"
                  auto-complete="off"
                ></el-input>
              </el-form-item>
              <el-form-item label="合计" style="color: red">
                <el-input
                  v-model="customer.brand"
                  auto-complete="off"
                ></el-input>
              </el-form-item>
            </el-row>
            <el-row style="margin-top: 10px">
              <el-input
                type="textarea"
                v-model="customer.name"
                placeholder="备注"
              ></el-input>
            </el-row>
            <el-row>
              <p style="margin-top: 5px; margin-bottom: 5px">
                图片上传：物品全图、维修部位局部放大图
              </p>
              <upload-img-list></upload-img-list>
            </el-row>
          </el-tab-pane>
          <el-tab-pane label="款号信息">
            <el-row class="upload-row"> </el-row>
            <el-row
              ><el-col :span="24"
                >备注：这儿保存的是原来产品的图片信息</el-col
              ></el-row
            >
          </el-tab-pane>
          <el-tab-pane label="维修历史">
            <el-input
              type="textarea"
              v-model="customer.name"
              placeholder="维修历史"
              style="margin-top: 10px; height: 100%"
            ></el-input>
          </el-tab-pane>
          <el-tab-pane label="操作记录">
            <el-input
              type="textarea"
              v-model="customer.name"
              placeholder="操作记录"
              style="margin-top: 10px; height: 100%"
            ></el-input>
          </el-tab-pane>
          <!-- <el-tab-pane label="产品文案">
            <el-input
              type="textarea"
              v-model="customer.name"
              placeholder="产品文案（可以从产品库导入）"
              style="margin-top: 10px; height: 100%"
            ></el-input>
          </el-tab-pane> -->
        </el-tabs>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <!-- <el-button type="primary" >报价预览</el-button> -->
        <el-button @click="dialogClose">取 消</el-button>
        <el-button type="primary" @click="dialogAdd">确定</el-button>
      </div>
    </el-dialog>

    <el-dialog
      title="请选择维修项目"
      :visible.sync="dialogVisibleWxll"
      
      top="20vh"
    >
      <el-checkbox-group v-model="checkList" style="margin-bottom:20px;">
        <el-checkbox label="抛光"></el-checkbox>
        <el-checkbox label="清洗"></el-checkbox>
        <el-checkbox label="换主石"></el-checkbox>
        <el-checkbox label="换副石"></el-checkbox>
        <el-checkbox label="改圈口"></el-checkbox>
        <el-checkbox label="换耳迫"></el-checkbox>
        <el-checkbox label="换耳夹"></el-checkbox>
        <el-checkbox label="换链"></el-checkbox>
        
      </el-checkbox-group>
      <el-checkbox-group v-model="checkList1"  style="margin-bottom:20px;">
        <el-checkbox label="抛光"></el-checkbox>
        <el-checkbox label="清洗"></el-checkbox>
        <el-checkbox label="换主石"></el-checkbox>
        <el-checkbox label="换副石"></el-checkbox>
        <el-checkbox label="改圈口"></el-checkbox>
        <el-checkbox label="换耳迫"></el-checkbox>
        <el-checkbox label="换耳夹"></el-checkbox>
        <el-checkbox label="换链"></el-checkbox>
        <el-checkbox label="换链2"></el-checkbox>
      </el-checkbox-group>
      <el-checkbox-group v-model="checkList2"  style="margin-bottom:20px;">
        <el-checkbox label="抛光"></el-checkbox>
        <el-checkbox label="清洗"></el-checkbox>
        <el-checkbox label="换主石"></el-checkbox>
        <el-checkbox label="换副石"></el-checkbox>
        <el-checkbox label="改圈口"></el-checkbox>
        <el-checkbox label="换耳迫"></el-checkbox>
        <el-checkbox label="换耳夹"></el-checkbox>
        <el-checkbox label="换链"></el-checkbox>
      </el-checkbox-group>
            <!-- <el-checkbox-group v-model="checkList3"  style="margin-bottom:20px;">

      </el-checkbox-group> -->

      <span slot="footer" class="dialog-footer">
        <!-- <el-item label="增加项目"></el-item> --> 
        <el-input  placeholder="新增项目" style="float:left;margin-left:10px;width:200px" v-model="newcheckitem"></el-input><el-button style="float:left;margin-left:10px;">新增项目</el-button>

        <el-button @click="dialogVisibleWxll = false">取 消</el-button>
        <el-button type="primary" @click="dialogVisibleWxll = false"
          >确 定</el-button
        >
      </span>
    </el-dialog>

    <dialog-search-customer
      v-bind:dialogshow="dialogSearchCustomer"
      @dialog_close="dialog_close_search_customer"
    ></dialog-search-customer>
    <dialog-search-product
      v-bind:dialogshow="dialogSearchProduct"
      @dialog_close="dialog_close_search_product"
    ></dialog-search-product>

    <dialog-repair-cailiao-add
      v-bind:dialogshow="dialogCailiaoAdd"
      @dialog_close="dialog_close_cailiao_add"
    ></dialog-repair-cailiao-add>
  </div>
</template>

<style scoped>
#form-repair .item-w230 .el-form-item {
  width: 230px;
  float: left;
  margin-bottom: 5px;
}
#form-repair .el-row {
  margin-bottom: 0px;
}
#form-repair.el-form--label-top .el-form-item__label {
  padding-bottom: 0px;
}
#form-repair .el-divider--horizontal {
  margin: 5px 0;
}
.sum-xj {
  margin-top: 15px;
}
.baojia-tabs .el-tab-pane {
  min-height: 500px;
}
.upload-row .el-col-3 {
  height: 200px;
}
.upload-row .el-col-3 button {
  margin-left: 40px;
}
.col-sum {
  padding-top: 10px;
  font-size: 18px;
}
#pricesManages .el-input {
  width: 90%;
}
#pricesManages .el-row {
  margin-bottom: 0px;
}
#pricesManages.el-form--label-top .el-form-item__label {
  padding-bottom: 0px;
}
#pricesManages .el-divider--horizontal {
  margin: 5px 0;
}
.el-col.col-button {
  padding-top: 26px;
}

#pricesManages .el-form-item {
  width: auto !important;
  float: left;
  margin-bottom: 5px;
}
#customerDialog .el-form-item {
  width: 45%;
  float: left;
  margin-bottom: 5px;
}

#customerDialog .el-form-item:nth-child(odd) {
  float: right;
}

.el-dialog__body,
.el-form {
  overflow: hidden;
}

#pricesManages .el-form {
  border: 0 solid #fff !important;
  padding: 5px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.td-lable,
.td-info {
  display: inline-table;
  vertical-align: -webkit-baseline-middle;
}

.td-lable {
  text-align: right;
  width: 100px;
}

.td-info {
  margin-left: 20px;
}

.tabs-table td {
  height: 50px;
  border-bottom: 1px solid #dcdfe6;
}
.customer-tabs .el-tab-pane {
  height: 500px;
  overflow: auto;
  padding: 20px;
}
</style>

<script>
module.exports = {
  methods: {
    handleRemove(file) {
      console.log(file);
    },
    handlePictureCardPreview(file) {
      this.dialogImageUrl = file.url;
      this.dialogVisible = true;
    },
    handleDownload(file) {
      console.log(file);
    },

    getSummaries_zs(param) {
      const { columns, data } = param;
      const sums = [];
      columns.forEach((column, index) => {
        if (index === 0) {
          sums[index] = "总价";
          return;
        }
        const values = data.map((item) => Number(item[column.property]));
        if (!values.every((value) => isNaN(value))) {
          sums[index] = values.reduce((prev, curr) => {
            const value = Number(curr);
            if (!isNaN(value)) {
              return prev + curr;
            } else {
              return prev;
            }
          }, 0);
          sums[index] += "";
        } else {
          sums[index] = "";
        }
      });

      return sums;
    },
    handleRemove(file, fileList) {
      console.log(file, fileList);
    },
    handlePreview(file) {
      console.log(file);
    },
    handleExceed(files, fileList) {
      this.$message.warning(
        `当前限制选择 3 个文件，本次选择了 ${files.length} 个文件，共选择了 ${
          files.length + fileList.length
        } 个文件`
      );
    },
    beforeRemove(file, fileList) {
      return this.$confirm(`确定移除 ${file.name}？`);
    },

    dialogAdd() {
      this.$confirm("是否继续操作?", "提示", {
        confirmButtonText: "确定",
        cancelButtonText: "取消",
        type: "warning",
      })
        .then(() => {
          this.$message({
            type: "success",
            message: "操作成功!",
          });
        })
        .catch(() => {
          this.$message({
            type: "info",
            message: "已取消",
          });
        });
    },
    dialogClose() {
      this.$emit("dialog_close", 1);
    },
    clickfullscreen() {
      this.fullscreen = !this.fullscreen;
    },
    //跟进
    dialog_close_genji_customer(val) {
      console.log(val);
      this.dialogCustomerGenji = false;
    },
    dialog_close_search_customer(val) {
      console.log(val);
      this.dialogSearchCustomer = false;
    },
    dialog_close_search_product(val) {
      console.log(val);
      this.dialogSearchProduct = false;
    },

    dialog_close_cailiao_add(val) {
      console.log(val);
      this.dialogCailiaoAdd = false;
    },

    handleButtons(val) {
      console.log(2222);
      switch (val) {
        case 1:
          this.dialogSendMessage = "true";
          console.log(this.dialogSendMessage);
          break;
        case 2:
          console.log(333);
          this.dialogSearchCustomer = "true";
          console.log(this.dialogSearchCustomer);
          break;
        case 3:
          console.log(333);
          this.dialogSearchProduct = "true";
          console.log(this.dialogSearchProduct);
          break;

        case 10:
          console.log(333);
          this.dialogCustomerGenji = "true";
          console.log(this.dialogCustomerGenji);
          break;
        case 111:
          console.log("维修材料表");
          this.dialogCailiaoAdd = "true";
          console.log(this.dialogCailiaoAdd);
          break;
      }
    },
    addData() {
      this.tableDatas.push({
        edit: true,
      });
    },
    //确认添加
    confirmAdd(row) {
      row.edit = false;
    },
    //修改
    editData(row) {
      row.edit = true;
    },
    //删除
    deleteData(row, index) {
      this.tableDatas.splice(index, 1);
    },
  },
  props: ["dialogshow"],
  data() {
    return {
      newcheckitem:"",
      dialogVisibleWxll:false,
      dialogCailiaoAdd: false,
      dialogImageUrl: "",
      dialogVisible: false,
      disabled: false,
      isEdit: false,
      checkList: [],
      checkList1: [],
      checkList2: [],
      checkList3: [],
      dialogSendMessage: false,
      dialogCustomerInfo: false,
      dialogCustomerGenji: false,
      dialogSearchCustomer: false,
      dialogSearchProduct: false,
      // dialogshow:false,
      fullscreen: false,
      fits: ["fill", "contain", "cover", "none", "scale-down"],
      url: "/public/images/eh1.jpg",
      srcList: ["/public/images/eh1.jpg", "/public/images/eh1.jpg"],
      customer: {
        name: "",
        customercode: "",
        customerstatus: "",
        customercate: "",
        creditrank: "",
        creditline: "",
        capital: "",
        annualsales: "",
        bank: "",
        certificateno: "",
        address: "",
        area: "",
        brand: "",
        bankaccount: "",
        trademark: "",
        website: "",
        lperson: "",
        lphone: "",
        contacts: "",

        phone: "",
        phonenum: "",
        weixin: "",
        email: "",
        fax: "",
        resource: "",
        requirement: "",
        ordercountmonth: "",
        purchaseamountmonth: "",
        ordercountyear: "",
        purchaseamountyear: "",
        customerstaffname: "",
        customerstaffcode: "",
        operator: "",
        insertime: "",
        remark: "",
      },
      formData: {
        kfmc: "",
        ywlxr: "",
        approval: "",
        approvaltime: "",
        customerapproval: "",
        customerapprovaltime: "",
        time: "",
        create_time: "",
        update_time: "",
        name: "",
        address: "",
        size: "",
        tel: "",
        email: "",
        id: "",
        ggcc: "",
        number: "",
        wppl: "",
        wpmc: "",
        kh: "",
        shr: "",
        shzt: "",
        shsj: "",
        bgscp: "",
        wxyy: "",
        wxfy: "",
        scwxjl: "",
        wxjl: "",
        field101: "",
        field112: 1,
        field105: "",
        field102: "",
        field108: 0,
        field110: "",
        field113: undefined,
        field114: 0,
        field115: 1,
        field118: 0,
        field123: 0,
        field122: 0,
        field206: undefined,
        field212: undefined,
        field170: 2,
        field171: 1,
        field172: "",
        field173: "",
        field174: 0,
        field175: "",
        field177: undefined,
        field178: 0,
        field179: 1,
        field180: 0,
        field181: 0,
        field182: 0,
        field214: undefined,
        field216: undefined,
        field127: [1, "99.984%"],
        field128: "",
        field138: 1,
        field140: 1,
        field135: 6,
        field137: 0,
        field143: undefined,
        field142: 0,
        field144: 1,
        field145: 0,
        field218: undefined,
        field220: undefined,
        field198: "",
        field205: [],
        field188: "",
        field190: "",
        field191: "",
        field189: 1,
        field192: 0,
        field201: 0,
        field195: undefined,
        field194: 0,
        field204: 2,
        field196: 1,
        field202: 0,
        field203: 0,
        field197: 0,
        field224: undefined,
        field226: undefined,
        field2000: undefined,
        field3000: true,
        field3001: false,
        field3002: false,
        datetime: "",
      },
      rules: {
        field101: [],
        field112: [],
        field105: [],
        field102: [],
        field108: [],
        field110: [],
        field113: [],
        field114: [],
        field115: [],
        field118: [],
        field123: [],
        field122: [],
        field170: [],
        field171: [],
        field172: [],
        field173: [],
        field174: [],
        field175: [],
        field177: [],
        field178: [],
        field179: [],
        field180: [],
        field181: [],
        field182: [],
        field127: [],
        field128: [],
        field138: [],
        field140: [],
        field135: [],
        field137: [],
        field143: [],
        field142: [],
        field144: [],
        field145: [],
        field198: [],
        field205: [],
        field188: [],
        field190: [],
        field191: [],
        field189: [],
        field192: [],
        field201: [],
        field195: [],
        field194: [],
        field204: [],
        field196: [],
        field202: [],
        field203: [],
        field197: [],
        field2000: [],
        field3000: [],
      },
      field101Options: [
        {
          label: "钻石",
          value: 1,
        },
        {
          label: "红宝石",
          value: 2,
        },
        {
          label: "蓝宝石",
          value: 3,
        },
        {
          label: "祖母绿",
          value: 4,
        },
        {
          label: "珍珠",
          value: 5,
        },
        {
          label: "白贝",
          value: 6,
        },
        {
          label: "尖晶石",
          value: 7,
        },
        {
          label: "彩钻石",
          value: 8,
        },
        {
          label: "其他",
          value: 9,
        },
      ],
      field105Options: [
        {
          label: "D",
          value: "D",
        },
        {
          label: "E",
          value: "E",
        },
        {
          label: "F",
          value: "F",
        },
        {
          label: "G",
          value: "G",
        },
        {
          label: "H",
          value: "H",
        },
        {
          label: "I",
          value: "I",
        },
        {
          label: "J",
          value: "J",
        },
        {
          label: "K",
          value: "K",
        },
        {
          label: "L",
          value: "L",
        },
        {
          label: "M",
          value: "M",
        },
        {
          label: "N",
          value: "N",
        },
      ],
      field102Options: [
        {
          label: "FL",
          value: 1,
        },
        {
          label: "IF",
          value: 2,
        },
        {
          label: "VVS1",
          value: 3,
        },
        {
          label: "VVS2",
          value: 4,
        },
        {
          label: "VS1",
          value: 5,
        },
        {
          label: "VS2",
          value: 6,
        },
        {
          label: "SI1",
          value: 7,
        },
        {
          label: "SI2",
          value: 8,
        },
        {
          label: "P1",
          value: 9,
        },
        {
          label: "P2",
          value: 10,
        },
        {
          label: "P3",
          value: 11,
        },
      ],
      field2000Options: [
        {
          label: "圆形",
          value: 1,
        },
        {
          label: "心形",
          value: 2,
        },
        {
          label: "梨形",
          value: 3,
        },
        {
          label: "椭圆形",
          value: 4,
        },
        {
          label: "公主方",
          value: 5,
        },
        {
          label: "玫瑰",
          value: 6,
        },
        {
          label: "马眼",
          value: 7,
        },
        {
          label: "绿术石形",
          value: 8,
        },
        {
          label: "其它",
          value: 9,
        },
      ],
      field110Options: [
        {
          label: "完美",
          value: 1,
        },
        {
          label: "非常好",
          value: 2,
        },
        {
          label: "一般",
          value: 3,
        },
        {
          label: "差",
          value: 4,
        },
      ],

      field115Options: [
        {
          label: "是",
          value: 1,
        },
        {
          label: "否",
          value: 2,
        },
      ],
      field170Options: [
        {
          label: "钻石",
          value: 1,
        },
        {
          label: "红宝石",
          value: 2,
        },
        {
          label: "蓝宝石",
          value: 3,
        },
        {
          label: "祖母绿",
          value: 4,
        },
        {
          label: "珍珠",
          value: 5,
        },
        {
          label: "白贝",
          value: 6,
        },
        {
          label: "尖晶石",
          value: 7,
        },
        {
          label: "彩钻石",
          value: 8,
        },
        {
          label: "其他",
          value: 9,
        },
      ],
      field172Options: [
        {
          label: "D",
          value: "D",
        },
        {
          label: "E",
          value: "E",
        },
        {
          label: "F",
          value: "F",
        },
        {
          label: "G",
          value: "G",
        },
        {
          label: "H",
          value: "H",
        },
        {
          label: "I",
          value: "I",
        },
        {
          label: "J",
          value: "J",
        },
        {
          label: "K",
          value: "K",
        },
        {
          label: "L",
          value: "L",
        },
        {
          label: "M",
          value: "M",
        },
        {
          label: "N",
          value: "N",
        },
      ],
      field173Options: [
        {
          label: "FL",
          value: 1,
        },
        {
          label: "IF",
          value: 2,
        },
        {
          label: "VVS1",
          value: 3,
        },
        {
          label: "VVS2",
          value: 4,
        },
        {
          label: "VS1",
          value: 5,
        },
        {
          label: "VS2",
          value: 6,
        },
        {
          label: "SI1",
          value: 7,
        },
        {
          label: "SI2",
          value: 8,
        },
        {
          label: "P1",
          value: 9,
        },
        {
          label: "P2",
          value: 10,
        },
        {
          label: "P3",
          value: 11,
        },
      ],
      field175Options: [
        {
          label: "圆形",
          value: 1,
        },
        {
          label: "心形",
          value: 2,
        },
        {
          label: "梨形",
          value: 3,
        },
        {
          label: "椭圆形",
          value: 4,
        },
        {
          label: "公主方",
          value: 5,
        },
        {
          label: "玫瑰",
          value: 6,
        },
        {
          label: "马眼",
          value: 7,
        },
        {
          label: "绿术石形",
          value: 8,
        },
        {
          label: "其它",
          value: 9,
        },
      ],
      field179Options: [
        {
          label: "是",
          value: 1,
        },
        {
          label: "否",
          value: 2,
        },
      ],
      field3000Options: [
        {
          label: "是",
          value: 1,
        },
      ],
      field127Options: [
        {
          label: "黄金",
          value: 1,
          id: 101,
          children: [
            {
              label: "千足金99.9%",
              value: "千足金99.9%",
              id: 108,
            },
            {
              label: "万足金99.99%",
              value: "万足金99.99%",
              id: 107,
            },
            {
              label: "24K 99.984%(999‰)",
              value: "99.984%",
              id: 106,
            },
            {
              label: "22k 91.652%(916‰)",
              value: "22k 91.652%(916‰)",
              id: 109,
            },
          ],
        },
        {
          label: "铂金",
          value: "铂金",
          id: 110,
          children: [
            {
              label: "PT999（99.9%）",
              value: "PT999",
              id: 111,
            },
            {
              label: "PT990（99%）",
              value: "PT990",
              id: 112,
            },
          ],
        },
      ],
      field140Options: [
        {
          label: "件",
          value: 1,
        },
        {
          label: "套",
          value: 2,
        },
        {
          label: "款",
          value: 3,
        },
      ],
      field135Options: [
        {
          label: "红",
          value: 1,
        },
        {
          label: "黄",
          value: 2,
        },
        {
          label: "蓝",
          value: 3,
        },
        {
          label: "黑",
          value: 4,
        },
        {
          label: "白",
          value: 5,
        },
        {
          label: "橙",
          value: 6,
        },
        {
          label: "绿",
          value: 7,
        },
        {
          label: "青",
          value: 8,
        },
        {
          label: "玫瑰金",
          value: 9,
        },
        {
          label: "玫瑰金",
          value: 10,
        },
        {
          label: "其它",
          value: 11,
        },
      ],
      field144Options: [
        {
          label: "是",
          value: 1,
        },
        {
          label: "否",
          value: 2,
        },
      ],
      field198Options: [
        {
          label: "钻石",
          value: 1,
        },
        {
          label: "红宝石",
          value: 2,
        },
        {
          label: "蓝宝石",
          value: 3,
        },
        {
          label: "祖母绿",
          value: 4,
        },
        {
          label: "珍珠",
          value: 5,
        },
        {
          label: "白贝",
          value: 6,
        },
        {
          label: "尖晶石",
          value: 7,
        },
        {
          label: "彩钻石",
          value: 8,
        },
        {
          label: "其他",
          value: 9,
        },
      ],
      field205Options: [
        {
          label: "黄金",
          value: 1,
          id: 101,
          children: [
            {
              label: "千足金99.9%",
              value: "千足金99.9%",
              id: 108,
            },
            {
              label: "万足金99.99%",
              value: "万足金99.99%",
              id: 107,
            },
            {
              label: "24K 99.984%(999‰)",
              value: "99.984%",
              id: 106,
            },
            {
              label: "22k 91.652%(916‰)",
              value: "22k 91.652%(916‰)",
              id: 109,
            },
          ],
        },
        {
          label: "铂金",
          value: "铂金",
          id: 110,
          children: [
            {
              label: "PT999（99.9%）",
              value: "PT999",
              id: 111,
            },
            {
              label: "PT990（99%）",
              value: "PT990",
              id: 112,
            },
          ],
        },
      ],
      field190Options: [
        {
          label: "件",
          value: 1,
        },
        {
          label: "套",
          value: 2,
        },
        {
          label: "款",
          value: 3,
        },
      ],
      field191Options: [
        {
          label: "红",
          value: 1,
        },
        {
          label: "黄",
          value: 2,
        },
        {
          label: "蓝",
          value: 3,
        },
        {
          label: "黑",
          value: 4,
        },
        {
          label: "白",
          value: 5,
        },
        {
          label: "橙",
          value: 6,
        },
        {
          label: "绿",
          value: 7,
        },
        {
          label: "青",
          value: 8,
        },
        {
          label: "玫瑰金",
          value: 9,
        },
        {
          label: "玫瑰金",
          value: 10,
        },
        {
          label: "其它",
          value: 11,
        },
      ],
      field204Options: [
        {
          label: "货重*金价",
          value: 1,
        },
        {
          label: "数量*单价",
          value: 2,
        },
      ],
      field196Options: [
        {
          label: "是",
          value: 1,
        },
        {
          label: "否",
          value: 2,
        },
      ],
      field127Props: {
        multiple: false,
        label: "label",
        value: "value",
        children: "children",
      },
      field205Props: {
        multiple: false,
        label: "label",
        value: "value",
        children: "children",
      },
      thhyy: [
        { id: 1, typename: "公司原因" },
        { id: 2, typename: "客户原因" },
        { id: 3, typename: "供应商原因" },
        { id: 4, typename: "其它原因" },
      ],
      jsfs: [
        { id: 1, typename: "月结" },
        { id: 2, typename: "现结" },
        { id: 3, typename: "预付全款" },
        { id: 4, typename: "分期付款" },
        { id: 5, typename: "货到付款" },
        { id: 6, typename: "其它" },
      ],
      chzt: [
        { id: 1, typename: "待出库" },
        { id: 2, typename: "已出库待发货" },
        { id: 3, typename: "已发货" },
        { id: 4, typename: "待签收" },
        { id: 5, typename: "已确认收货" },
        { id: 5, typename: "申请退换货" },
        { id: 5, typename: "退换货确认" },
      ],
      jszt: [
        { id: 1, typename: "未结算" },
        { id: 1, typename: "部分结算" },
        { id: 2, typename: "已结算" },
      ],
      shzt: [
        { id: 1, typename: "待审核" },
        { id: 2, typename: "已审核" },
        { id: 3, typename: "未通过" },
        { id: 4, typename: "--" },
      ],
    };
  },
  components: {
    "dialog-tools": "url:../tools/dialog-tools.vue",
    "genjin-jilu": "url:../data/genjin-jilu.vue",
    "dialog-search-customer": "url:./search-customer.vue",
    "dialog-search-product": "url:./search-product.vue",
    "upload-img-list": "url:../tools/upload-img-list.vue",
    "dialog-repair-cailiao-add": "url:./baojia-repair-cailiao-add.vue",
  },
};
</script>
